#include "Square.h"

using namespace Rorn::Chess::TheCorruptRook;

Square::Square(int rank, int file)
	: rank_(rank), file_(file)
{
}

int Square::GetRank() const
{
	return rank_;
}

int Square::GetFile() const
{
	return file_;
}

/*static*/ bool Square::IsOnBoard(const Square& square)
{
	return (square.GetRank() >= 0 && square.GetRank() < 8 && square.GetFile() >= 0 && square.GetFile() < 8);
}